﻿using Zdap.Common;

namespace Datav.Design.IService
{
    /// <summary>
    ///
    /// </summary>
    public interface ISubjectAbstractService
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="ProjectId"></param>
        /// <param name="models"></param>
        /// <returns></returns>
        ValueTask<ResponseContext<bool>> ImportSubjectAbstract(long ProjectId, List<ImprotSubjectAbstractModel> models);
    }

    /// <summary>
    ///
    /// </summary>
    public interface IWSubjectService
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="subjectSearchModel"></param>
        /// <returns></returns>
        ValueTask<ListResponseContext<LastCodeSubjectModel>> GetLastCodeSubjects(SubjectSearchModel subjectSearchModel);

        /// <summary>
        ///
        /// </summary>
        /// <param name="ProjectId"></param>
        /// <param name="configId"></param>
        /// <returns></returns>
        ValueTask<ListResponseContext<SubjectTreeModel>> GetTree(long ProjectId);

        /// <summary>
        ///
        /// </summary>
        /// <param name="ProjectId"></param>
        /// <param name="models"></param>
        /// <returns></returns>
        ValueTask<ResponseContext<bool>> ImportSubject(long ProjectId, List<ImportSubjectModel> models);
    }
}